package model

import (
	config "github.com/spf13/viper"
	"log"
)

var (
	HttpPort     string //Http端口
	UdpPort      string
	testOpenPort string
	IstestOpen   int
)

func init() {
	config.AddConfigPath("./")
	config.SetConfigName("app")
	if err := config.ReadInConfig(); err != nil {
		log.Fatalf("Error reading config file, %s", err)
	}
	HttpPort = config.GetString("default.HttpPort")
	UdpPort = config.GetString("default.UdpPort")
	testOpenPort = config.GetString("default.testOpenPort")
	IstestOpen = config.GetInt("default.IstestOpen")
}
